#pragma once
#include <windows.h>
#include "constants.h"
#include <iostream>
#include <string>
#include "RenderHelper.h"
using namespace std;

struct tile 
{ 
	int id; 
	string name; 
	bool walkable; 
	string path; 
}; 

class CTileRenderer
{
public:
	CTileRenderer(void);
	~CTileRenderer(void);	
	void DrawTile(HDC bufDC, int **&tile, int x, int y);
	HANDLE images[412];
	tile myTiles[412];
	void initTiles();
		
private:
	HDC bufDC;
	HBITMAP bufBMP;
	RECT rect;
	HANDLE emptyHandle;
	HANDLE getImage(int index);
 
	

};

